more safety in args checking
use root-collection, this is in pyret-editor-service but should be saved here as well