modify stub behavior