update console code: