modified argutils routine