promise is now aynchronous
change to coffee script