fix parsing cmd line args