add paginator directive, clean dependency