use Ruby for mocking