fixed broken pointer reference and Logger.handle type