improve mac packaging procedure