added half-working command line parser