small console conde refactor