updating oaptools reference function