utilities for c++ application