templates and file selection