bug fix: redirection, file naming