endpoints as arrays working