added proper support for private responses