added --forget-app option