added separate thread for data processing