rename 'locals' to 'obj'