fix: clean up code; add: update function in right module; add: crecord name