add "set_filename" method to enable possibility provide own target filename.