fixed server connection and added npm packages