replace all use of $APPL with $APP