added remote_ip call to events_controller