handle file-open; break out app delegate; prune includes