updated logic for the args command