change apiUrl to public