using node module "mime" instead of my janky mimetype mapping