changed app model into public - client - server - model