emit functions from method.cpp