setup and upgrade work