fixed header bug; additional bugs found in startResponseHandler method