moved to SharedUtil.h/cpp