adding legacydeploy option