refactor class to server_spec package