fixed: controller.functions() and controller.models()