.osx setup
add .functions support
.exports updated to allow larger histsize