requires rest_client in case the rake task is called without an environment