updated api_key and hmac wrappers