added nanoc guard

added nanoc guard