mila: add input pipe to ease timing