refactored for new clip engine