refactor
accept url rule