reorganized a bit, added more example code to clean up