implemented template server