added flags to console commands and fixed mime lookup for download view