handle res being written to manually