fixes upgrade