adapted connect options and added additional mime types