modified problem
can initialize problem with data, and rescue socket error