added check/set bit APIs