added support for stubbing backend API