added self and self.data to exit:code for context