prepare_request defined
credentials fixed