made command a lib