commit at 7/7 add script define and pkg design