stubbing out external methods