working on making scripts more generic