separate server from lib