fix bugs; simple daytime/night mode