updated examples to use effects module