add save capture and pattern