sandboxed a custom directive