change app name and remote hostname accordingly