forgot to check if publicFolder was set.