detect using APP_SUBDIR