unit manager script added