finally got my promises working