improve checking/creating the necessary security-related paths