FIX: better approach to prefer file selection