adding in some handling for serial data