updated stubing to be included by a method rather than config before