linked users with schedule. lots to be done. code looks like shit