emulation of ATM(low level)