whitespaces
remove code which is never reached
don't fail on export if no local roles dictionary is present
remove unused comment