implement static mock version