made arg.js clean up edge cases better