improvements to stability