command line implementation in bin