renamed function to queueOpenFile