update customer node, end of day part 2
Fix some bugs