updated code to include pragmas from config