new function populate for tools and appropriate changes to pophod script