added support for promise
version 0.2.5
added support for promises