removed hardcoded IP from .online, added better error handling