add old cdk features when using command line, fix two bugs when features are missing