added option to enable/disable palette