document new instanceId param
refactor