use interface like console