added command line checks to validate config