refactor
add extention white list
refactor