more loop prevention enhancements
bump to 3.6.5