made a bunch of changes, probably has some errors, will test tomorrow morning when i receive the relevant clients and their lists.