move simulator code to one file
work in progress