fixed up angular socket libraries and code