bugfix
cleanup / template setup should be done during app initialization