bugfixes and utility works when no classes defined