add offline output for debug