mv: update_userData to ir.py as update_state