moving threadUtils into utils package