created server-side directory and moved server-related classes over there