added prototype_method_map to endpoint