work in progress: serial control
working version with read_command