Add online update support

Signed-off-by: Rack Lin <racklin@gmail.com>