added auto pause