adding api, fixing jetty