add some useful library functions to preload.ql