refactored code into simrServer module