basic server architecture

remove unused vars