rename app, fix a few bugs