var initialize = func() {
	var cell = registercell();

	cell.name = 'Flex';
	cell.desc = 'Build your own cell! Many different optional properties.';

	cell.graphic = 'cell_flex.svg';

	cell.capacitance = 4; // overwritten by inertia, below
	cell.resistance = 1;

	cell.add_channel('channel_leak_big_k.mc');	//potassium leak channel to set the resting potential
	// cell.add_channel('channel_leak_na.mc');  //set by option

	//set up the options
	cell.add_variants('resting', 'low', 'normal', 'high');
	cell.set_default_option('resting', 'normal');
	var resting = cell.get_selected_option('resting');
	if (resting == 'low') { cell.add_channel('channel_leak_small_na.mc'); }
	if (resting == 'normal') { cell.add_channel('channel_leak_na.mc'); }
	if (resting == 'high') { cell.add_channel('channel_leak_big_na.mc'); }

	cell.add_variants('jitter', 'slight', 'some', 'lots');
	cell.set_default_option('jitter', 'slight');
	var jitter = cell.get_selected_option('jitter');
	if (jitter != 'none') { cell.add_channel('channel_stochastic_k.mc', jitter); }

	cell.add_variants('inertia', 'light', 'medium', 'heavy');
	cell.set_default_option('inertia', 'light');
	var inertia = cell.get_selected_option('inertia');
	if (inertia == 'light')	{ cell.capacitance = 4; } // default
	if (inertia == 'medium'){ cell.capacitance = 16; }
	if (inertia == 'heavy')	{ cell.capacitance = 32; }

	cell.add_variants('adapt', 'none', 'slow', 'fast');
	cell.set_default_option('adapt', 'none');
	var adapt = cell.get_selected_option('adapt');
	if (adapt != 'none') { cell.add_channel('channel_spikefreqadapt.mc', adapt); }

	cell.add_variants('queer', 'none', 'some', 'lots');
	cell.set_default_option('queer', 'none');
	var queer = cell.get_selected_option('queer');
	if (queer == 'some') { cell.add_channel('channel_queer_variable.mc', 'norm'); }
	if (queer == 'lots') { cell.add_channel('channel_queer_variable.mc', 'fast'); }

	cell.add_variants('plateau', 'none', 'medium', 'endless');
	cell.set_default_option('plateau', 'none');
	var plateau = cell.get_selected_option('plateau');
	if (plateau == 'medium') { cell.add_channel('channel_pacemaker.mc', 'normal'); }
	if (plateau == 'endless') { cell.add_channel('channel_plateau.mc'); }




};
