module dependencies core: properly handle the USE_FUNC_PARAM flag