added debug message to test permissions