add feature checking macro