local library of functions