patterns dir