fixed arg parsing