redirect stderr, stdout to file