bugfix: adding $CI and getting CI instance