init done and tested
merged a bit
merged with io stuff, init still works