trying to get self-update to work correctly