fix api change, but this outputs a lot to the console ...