better means of disabling commit