fixed some mac issues, put an error for old pkl files