Doesn't crash anymore, exit working, code rewritten, almost ready to release