parsing standard input/output script moved to utils, tests added