add authorize config
add some function in util