now respects default window colors, some error fixes