moving towrds working 3 tier, but probably not yet working.