updated reference passing syntax, added mig_users
migrate games functions