add some code stubs and do some reordering
some more work on recording