modularizing conn