code tweaks & cards