more work on the online functions