added some events, utility code, container handling and testint code