support namespace table in function registering