support binary patterns