added copy plan functionality