deal with missing directories
skip non-existing directories
fix path
configurable path and host name