add bd script recovering for full packaging