remove logger before saving package