debugged, everything runs now, but hive crashes in winter.