fixed winlength command, fixed client layout, some other minor fixes