added classes for redirecting output to commands