add publish scripts
some minor fixes