working progress for handling individual file