fixed some bugs. continue working on create module.