added debug information switch