simple call back based command line