optimization and corrections in modular connector functions