wrote debug files