add api online status indicator
clean up