app_detect.rb added