sort out resource pages