replace --definition back with --directory