implemented #304, callFunctionsWithAnnotation magic function