sort out load order