[backend] refactoring mockremote