Selfconsistency and backbending in rare earth nuclei