profile saving fix, much improved overall