fix arg parsing