fix appname and stuff