string parsing and general work in serial sample