cleanup: leveldata moved to separate class