bunch of fixes for apparmor