fix for functions in module resource