first draft of local mapping