input based block.sh