added loging to file