dynamic script loading enhancements