made $rest private to avoid conflict with REST_Client