fleshing out internals.rst