appname is used in 196, so move this block back and I can merge this