data models and server connection method added