debugging through emulator