improved swap file pattern