add endpoint for retrieving shares