updated to read pressure from pressure file