implement depth option

closes #3
2.1.0