forking 0.1.2 of original npm lib