using mocking for testing function access. still need to mock access to web
mocking access to web