update dir for server side code