more debug output, set up odata via a function