added escape sequence for \t \r chars, need to do a proper escape list