final version of gen cmdlins so far