implemented fetchbin protocol
as well as fixing a bug in fetch