added urgency updating and server-side script (currently testing)