finished adding before and after processing for connections