re-implement building responses object.