add debug info but still not correct in "getop"