made before and after rout settings more strict