change defrag module into classes