fixes argument parsing. standardize path parsing.