work on com handlers

implemented syncup code
implemented listen state
splitted startup state to 2 states and implemented