added file for cli
implemented callback hook
experimenting with callback hook