adding support for unit() to calls

Adds support for unit() to calls.