bit of hack to order declarations (two priority levels)