use global mask only optionally