background and bug fixes