improve path spec