helper module for work with promises and dnode