move server into lib
camelize variable