rough in for a saveAs function