permissions & restart handler