added check for swagger.ready