checking for directory existence
merge