fix debug server, web app capabilities, clean tks