read initial hash, better URL matching