store permits to file