added a bunch of payments code