fix for scripts