cut the stuff for optimization and perhaps add early failure?
even the early return, ensure config is not null to set template custom, and add fast finish to travis