add app config, fix usage of mimetype