use new AddDetail interface
update auto compress script