removing api_ref from front controller