fix parsing of args