add analysis+download and fix OPTIONS request