tweaked argument parser, -p & -o working