added threading for filestatus