blocks commits in certain ocasions