moving cmd line parsing into own module