rework for linked documents
Merge branch 'master' of github.com:cc86hn/hp