incremental changes for dumping data. Warning: UNTESTED AND CAUSING CRASHES
TODO added
added loggers
error fixed
Initalization is split in two to better support server side scripting and part initialization. One really ugly bug fixed