mode = 'worksheet' when compiling worksheets