implemented script loader