it was not a good idea to recursively change permissions
make more runtime params configurable