updated core
various fixes and improvements