altered online status to new api