make appname a constant