added loging to cosm