adapt top level boilerplate from the nxmctree project