define func is detected in build process