added functionality for clip extraction
created more generic functions for batch generations