fix package script; add publish script