optimized for numeric computation
add web script support