convert some shell blocks