use some bit functions directly, not mysql bitmap