added dynamic script loading