add logging system