make filedump.save() wait till file is written and add filedump.dump() which doesn't