switch to using generic Streams instead of hard coded to Serial