started to add serial functionality