added a cbi helper library currently only used for some flag functions I need.