added update stuff, but it's not working yet