new directives; updated Endpoint.js