better error handling and support for https is now fully integrated