output redirect is working even if there are some bugs.