add module interface and some changes in function calls in module, and update config by clainatomi