added the --add option