setting up 3 tier arch