implemented script reloading