move low level callback types and callback wrappers into low level session module