bugfix wrong string length
added _endpoints and _prefix collection