fix stdin message handling & specs

closes #1386