changed sendfile to sendFile
resolving relative paths