fix get_datastream. plus go fmt