fix func.getName to dynamically get the name
build