support for promises in rot.engine