moved patterns wrapper from end to here so that my new set could use a relative package