added lb2
added and integrated loger