added api_key option back to constructor