force URL connections to load on the main thread and fix method signature