move getStateDir from ModelPlugin to ModelCore
moce cleanupProvider classes to api