passing CommandLine as pointer to avoid multiple instantiation