changed appname, and other minor changes