added optional args that can be passed through to custom mapping functio...

...ns.