improved file selection