added spreadsheet handling functionality