remove unused code
fix script load path
add string:each()
add core_pattern module