added BgThread utility class