move server to separate gem