add custom_palette option to override palette