implemented memory and touch triggers, and added uptime trigger