created priority list and xml parser for server side cap, not fully tested