filtering for top level endpoints

Signed-off-by: Ondrej Koch <o.koch@zerusnet.com>