added date format lib; better socket client