skip writing file if not selected before pagination
fix writing when empty list and specify logging level