moved string stuff into serial class