put garbage gallery into a class, went way overboard with debug output etc, it's a bit less garbage now