started implementing wait for couch feature