updated nested-element workaround for bedextract