modify to online mode