fixes some cli argument parsing