why use class? fixed slow performance and merge all in unique script