added support for r.args