input sream + complete getnexttoken