factored out toolbox creation code