remove some permissions & cruft from background