publish can take pkg as arg