added --id and --sc options