[UPDATE] extracted output stream look-up to separate module.