create base directories and templates