fixed autorun functions referencing user()