generic bracketup.compile method