making addtoolbox more generic