startup script and publish script