add a simple find function
flesh out some more util functions
fix some small bugs