add a file handler with an 'attachment' mode for direct download