added responses.h and responses.c (should have been in the last commit)