server side for avalanche