adjust prefix detection