just use promises - AGJS-246