add dummy serial command handler
refactor comm apis