fix #20 - add mime type handling