migrated from https://github.com/senchalabs/connect/issues/670
migrated from senchalabs/connect#670