fixes for reading in pattern file during GET operation