comments and minor change to intermediary script