added a startup script to workaround common bugs