used wget instead of curl and create logs directory automatically