add support for setting effect