added serial functions.h