Revert "better support for app detection"

This reverts commit 7552be6d88dc59f3a03134eff86a9d56a3b407b0.