add logand and logor support