endless mode framework set up, needs testing