removed mkdir for logs
updated countCharLength and removed deprecated code