first cut at generating response - not tested yet