improved security and file permission enforcement