updatig the paths and stuff