initial import from amalgamatic core