add foot and fix bugs
foot
query class
reg