added destroy to the list of commands that shuld take the unit parameter