Custom grains directories
handle better state errors