created smart copy script v1