fix import order
client should pass ip address and user agent when necessary