setting up device emulation