add warning for if stat fails