a semi-stable version