add updating flag to block the service
move update routines to server