added logs functionality