Seperate server setup functions for debugging