refine loader: establish flags in debug loader.