infuriating bugfix - leaving absurbly verbose debug in for now