background thread syncing
misc improvements