main module to run reactions locally