register fragment added to corenode API, and tidied up