added palette manager