add Unit/Function helper

There's no getting around the eval().