invoke methods inside a future to be able to have timeouts