refs 6775 create and update function_class