clean up scripts; add publish script