move logger to components