added back blocks and sample command line app