added more debugging mumbo jumbo