fix build and move function init to FunctionObjects