started to add code for Socket manual and timing control