determines Apps location dynamically