sendFile depricated fix