add shallow option