sort out formatting
Read from URLconnection instead of direct from URL