he was freed by cossacks in that place and was named their hetman