updated to new hxdom