use Q promise to save multiple files