added serial control