changes for debugging
added update task to update periodicly