add logging back