added util.ity functions common to server and client side