command line params, crash fixes