adding doc metadata generation. Philosophically something that should be supplied by the user along with the data
working copy for input_handlers.