added filename to sendFile function