added foldersArePages option