minor changes to save content into a folder suitable for JEX