added default handler to the endpoint