make server accessible from within request handlers