an example and some fixes