split "clone site" logic into a separate script