makes response immutable
adds minor tweaks