improve review branch detection