redo /toxcore as it was before refactoring