scripts loading minor optimization