add option to limit recursive dependencies (fix #7)