better topic file validation