making app flexible and scalable