addblock
fixed bugs