starting qts sim refactor