update all code for setup