input & output streamdefs