add basic encounter api