fix api for inst object setting state