rough draft of the guardian import algorithm