add logs table

fix incompatible array use
add stats command