update directives; update test server api