emulator_for now takes block that is passed to connect