use redirect input to output for testing (not for final release)