[WIP] implement response functionality