move meat of utils into parser methods