fixed unresolved import for get_user_agent