using thin webserver. few fixes