adds auto-termination