i'd love to have this function somewhere accessible for other plugins. i.e. the confmanager plugin uses a similar functionality.