table rebuild (memleaks fixed) + new commands added