switch partials to function wrappers
fix tests
test scale