debug permission problems