a base function interface for add dynamic module