bugfixing and set module params