refactoring back to simr package