updated to promise 0.1.2