update authcode regex
remove references to unused brake
improved match stream, with variable pages