record some commands