build grant
delete unuseful files