open up formatting and clean-up file handle code
fix retain cycles in NSTask blocks