added serialized for files and folders, removed old payload generation