support empty directives
add pageBreak directive