changed order of scripts