adds cert env vars
changes fcl func