bg, minor improvements