add script type def
favor script
add ui
fix copy/paste
fix