add the cloning steps for template