move _ns check above snippet check