line parsing moved to external file