fixed thread issue for retrieving status