edits to pim_tools