added a module and fixed a compile bug