added check for existing site dir