advanced shared preferences, doesnt work yet