scripts used in the pi monitor