added script loader
messy work-in-progress