fix bug in uploader and remove comments from template configs