secure check for insert tags