added logging for response