clean up shell blocks