ligandsetup class working