Change addRoot() function to create root as published by default