added publicFolder option