add type check #publish second arg