more ac3 boilerplate, some pseudocode