refuse api calls until 'apiready' event is reached