updated for migrane utility script