added a all static method to the promise class