refactor toxilibs to take parametrized args