more efficient way for serving files using transferTo