create a custom system to realize the same function as WordPress system plugin do