clean up example and fix dependency