account for stack when selecting dea to run an app