put rest_connection loading in a block and rescue if it can't be loaded