fixed bug in promiseFactory and added devDeps