added knowsis debugging switch