exchange type with routegopherjs