paring down included helper code