single certificate getter (non-recursive)
separate the formatter
add a base function for looping over a batch; fix batch import to correctly check the last certificate in the batch;