fix the cli parsing sequence