fix to permission handler and small fix to /slap