initial commit of hack on @sindresorhus' work