added minimal error handling and https "support"