fixes for scripts