fixed check for boto.cg