optimise packaging files