common function library for puppet