added auto_accept option