added support for saveall