update working environment