add logging, fix render callback