add for txt mode