fix an issue with singletons. add another example.