fix applying permissions installing dependencies. debugging.