collection some useful util code from other project