add more logging to look for permissions explosion bug