Fixed permissions bug
removed debug prints