removed console check