parameterized return type io -- small fixes

@bblfish those are small modifications you asked for. Should take you 10 seconds to review.