separate Server class from 'connection.py'