add conditional logic to isolate mock data from lib