added new cli flag -getCode