appname and minor fixes