multithreading seems to work
save before branching