WIP: record views and compile clean

Probably broken.