update wsh api (closes #4178)