use custom c extension cell magic