Extract some loader functions
Add parser to retract bogus roles