major fix on preference store/retrieve