shell automation for Nblocks