made configwindow a little bit more robust