Improved reading of pac files - thx Massimo :)