creating files sync vs creating files async