fix script permissions
not working yet, dont forget to rebase this