spec for dir and its state