changes to endpoints

changes to passing around EndPoints
storing account EndPoints for future use