add a new function
add extrea traffic codes
fix some errors