various fixes, added attribute change to history