add test, fix resp stream