restructed
before refactoring (remove message types - use function closures?)
more protocol. alloc table, config file intro, check table size