add set and get apis