One of the biggest problems is many homeless are too mentally ill to make good decisions for themselves like seeking treatment. That's probably obvious given their life situation, but the law doesn't allow anything to be done for people too sick to help themselves. We need compelled treatment and high-quality facilities which are not jails but where people are not free to leave until they have enough momentum in their treatment to improve their lives. This seems heavy-handed, and probably is, but most people would thank you eventually.