add dir before curl