new placeholders: folder and folderhierarchy. cleanup getFormatElementValue, #ifdefs are creeping in too many locations for my taste, but let it be for now.