added logs handler