using mime module
Merge branch 'staging'