protect the correct paths