added replace robot command
fixed copyscript