updated acc functin - now takes Json effects - docs coming now