some work notes and code snippet