expose useful internals... thanks jaybinks