add separate handlers for each mime type