first try at adding the log-window-size argument