added functions: getFileNameFromUrl, getUrlWithRelativeUrl