better palett/prefse handling.