added periodic update in background thread
fixed tests