added support for mocking interfaces