stock rex service layer