added methods to check promise has completed