loader: better mocking