refactoring to new module system

Signed-off-by: Tolga HOŞGÖR <fasdfasdas@gmail.com>