added redirection for milc input