fixed bugs, implemented info cmd