fixed bug where program would hang waiting on data connection