moved debugging flags into place.