added socket call
removed catch