move file operations to Question, and global variable