web/apljk: treebuild and amend