some extra flagging needed for threading, tri-state!