fixing argument parsing. wow cant believe that slipped passed me